package com.colin.datamove.mapper.db2;

import com.colin.datamove.entity.OpenAccount;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("db2OpenAccountDao")
public interface OpenAccountDao {
    /**
     * 获取未迁移数据
     * @param limits 每次读取数量
     */
    List<OpenAccount> getUnMoveData(@Param("limits") Integer limits);
    /**
     * 更新数据为已迁移
     */
    int updateMoved(List<OpenAccount> list);
}
